package io.renren.modules.app.service;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import io.renren.modules.app.entity.ibps.BpmApproval;

/**
 * 流程定义
 * @author Administrator
 *
 */
public interface IBpmApprovalService extends JpaRepository<BpmApproval, String> {
	@Query(value = "SELECT * FROM ibps_bpm_approval WHERE push = FALSE AND  TASK_ID_ = ?1", nativeQuery = true)
	BpmApproval findByTask(String taskId);
}
